package observer.deformation;

public class ConcreteObserverA implements Observer {

    @Override
    public void update(Object message) {
        System.out.println("ConcreteObserverA:" + message);
    }

    @Override
    public void subscribe(String subjectName) {
        SubjectManager.getInstance().addObserver(subjectName, this);
    }

    @Override
    public void unsubscribe(String subjectName) {
        SubjectManager.getInstance().removeObserver(subjectName, this);
    }
}
